package com.springboot.myspringboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@TableName("solid_table")
@Data
public class SolidTable {
    @TableId(type = IdType.AUTO)
    private Integer id;


    @TableField("area_id")
    private Integer areaId;

    @TableField("area_name")
    private String areaName;

    @TableField("create_id")
    private Integer createId;

    private Double lon;
    private Double lat;
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("create_time")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("check_time")
    private LocalDateTime checkTime;

    @TableField("file_path")
    private String filePath;
}
